<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script>
    <meta name="author" content="lijinbo" />
    <title>052-m长按事件</title>
    <style>
      .btn {
        width: 300px;
        height: 150px;
        cursor: pointer;
        border-radius: 4px;
        border: 1px solid #999;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    </style>
    <script type="module" crossorigin src="../../../../static/js/052-index.html-177ba733.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
  </head>

  <body>
    <div id="app">
      <button id="touchArea" style="touch-action: none">原生的长按</button>
      <hr />
      <div class="btn" v-longpress="longpressHandle">longpress 长按</div>
      <p>longpress： {{ longpressCount }}</p>
    </div>
    
  </body>
</html>
